<form id="add-form" class="form-horizontal" style="position:relative;background: #fff" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="panel-body">
        <div id="myTabContent" class="tab-content" >
            <div class="tab-pane fade active in" id="tabs_0">
                <input type="hidden" name="row[id]" value="" class="form-control" data-rule="" data-tip="ID"  />

                   <div class="form-group">
                        <label for="c-name" class="control-label col-xs-12 col-sm-2">社区办学名称:</label>
                        <div class="col-xs-12 col-sm-8" id="div-name">
                            <input type="text" id="c-name" name="row[name]"  value="" class="form-control" title="name"  placeholder="输入社区办学机构名称" data-rule=""  data-tip="社区名称"  />
                        </div>
                   </div>

                   <div class="form-group">
                    <label for="c-province_id" class="control-label col-xs-12 col-sm-2">行政区划:</label>
                    <div class="col-xs-12 col-sm-8" id="div-province_id">
                        <div style="margin-top:-2px;margin-left: -2px;">
                            <select id="province" id="c-cityarea_id" class="form-control liandong"  name="row[province_id]"
                                    type="text" value=""></select>
                            <select id="city" class="form-control liandong"  name="row[city_id]"
                                    type="text" value=""></select>
                            <select id="county" class="form-control liandong"  name="row[district_id]"
                                    type="text" value=""></select>
                        </div>
                                            </div>
               </div>

               <div class="form-group">
                    <label for="c-address" class="control-label col-xs-12 col-sm-2">地址:</label>
                    <div class="col-xs-12 col-sm-8" id="div-address">
                        <input type="text" id="c-address" name="row[address]" value="" class="form-control" title="address"  placeholder="" data-rule=""  data-tip="地址"  />
                    </div>
               </div>

               <div class="form-group">
                    <label for="c-school_logo" class="control-label col-xs-12 col-sm-2">社区学校Logo:</label>
                    <div class="col-xs-12 col-sm-8" id="div-school_logo">
                        <div class="form-inline">
                            <input id="c-school_logo" class="form-control" size="39" name="row[school_logo]" type="text" value="" data-tip="">
                            <span><button type="button" id="plupload-school_logo" class="btn btn-danger plupload" data-input-id="c-school_logo" data-mimetype="image/*" data-multiple="false" data-preview-id="p-school_logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-school_logo" class="btn btn-primary fachoose" data-input-id="c-school_logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                            <ul class="row list-inline plupload-preview" id="p-school_logo"></ul>
                        </div>
                    </div>
               </div>

               <div class="form-group">
                    <label for="c-thumbnail" class="control-label col-xs-12 col-sm-2">主校封面图:</label>
                    <div class="col-xs-12 col-sm-8" id="div-thumbnail">
                        <div class="form-inline">
                            <input id="c-thumbnail" class="form-control" size="39" name="row[thumbnail]" type="text" value="" data-tip="">
                            <span><button type="button" id="plupload-thumbnail" class="btn btn-danger plupload" data-input-id="c-thumbnail" data-mimetype="image/*" data-multiple="false" data-preview-id="p-thumbnail"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                            <span><button type="button" id="fachoose-thumbnail" class="btn btn-primary fachoose" data-input-id="c-thumbnail" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                            <ul class="row list-inline plupload-preview" id="p-thumbnail"></ul>
                        </div>
                    </div>
               </div>

               <div class="form-group">
                    <label for="c-intro" class="control-label col-xs-12 col-sm-2">社区学校简介:</label>
                    <div class="col-xs-12 col-sm-8" id="div-intro">
                        <div style="position: relative;">
                            <textarea name="row[intro]" id="c-intro" class="form-control editor" data-rule="" rows="5" data-tip="社区学校简介" ></textarea>
                            <div style="margin-top: 8px;">
                                <button type="button" class="btn btn-info btn-sm" id="ai-generate-intro" title="AI生成社区学校简介">
                                    <i class="fa fa-magic"></i> AI生成简介
                                </button>
                                <small class="text-muted" style="margin-left: 10px;">系统将根据社区名称自动生成简介内容</small>
                            </div>
                        </div>
                    </div>
               </div>

               <div class="form-group">
                    <label for="c-feature" class="control-label col-xs-12 col-sm-2">社区学校特色:</label>
                    <div class="col-xs-12 col-sm-8" id="div-feature">
                        <div style="position: relative;">
                            <textarea name="row[feature]" id="c-feature" class="form-control editor" data-rule="" rows="5" data-tip="社区学校特色" ></textarea>
                            <div style="margin-top: 8px;">
                                <button type="button" class="btn btn-info btn-sm" id="ai-generate-feature" title="AI生成社区学校特色">
                                    <i class="fa fa-magic"></i> AI生成特色介绍
                                </button>
                                <small class="text-muted" style="margin-left: 10px;">系统将根据社区名称和简介自动生成特色内容</small>
                            </div>
                        </div>
                    </div>
               </div>

               <div class="form-group">
                    <label for="c-is_list" class="control-label col-xs-12 col-sm-2">是否在“老年大学”列表显示:</label>
                    <div class="col-xs-12 col-sm-8" id="div-is_list">
                        <label for="row[is_list]-1"><input id="row[is_list]-1" name="row[is_list]" type="radio" value="1" data-tip="是否在“老年大学”列表显示" {if 1=="1"}checked{/if} /> 是</label>

                        <label for="row[is_list]-0"><input id="row[is_list]-0" name="row[is_list]" type="radio" value="0" data-tip="是否在“老年大学”列表显示" {if 0=="1"}checked{/if} /> 否</label>
                    </div>
               </div>

               <div class="form-group">
                    <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
                    <div class="col-xs-12 col-sm-8" id="div-status">                    
                        <input id="c-status" name="row[status]" type="hidden" value="1">
                        <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-status" data-yes="1" data-no="0">
                            <i class="fa fa-toggle-on text-success fa-flip-horizontal fa-2x"></i>
                        </a>
                    </div>
               </div>
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</form>



